package com.wanxi.feign.clients;

import com.wanxi.common.result.CommonResult;
import com.wanxi.feign.fallback.UserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "userservice",fallback = UserFeignFallback.class)
public interface UserFeignClient {
    @GetMapping("/checkAccessToUri")
    CommonResult checkAccessToUri(@RequestParam("uri") String uri, @RequestParam("username") String username);
}
